// 用户信息模块
export default {
  namespaced: true,//开命名空间
  state: {//全局变量
    uasename: "胖胖鱼",
    nickname:" 小胖鱼"
  },
  mutations: {//同步修改state的变量
    setNickname(state, name) {
      state.nickname=name
    }
  },
  actions: {//异步setNickname
    asyncGetNickname(store) {
      store.commit("setNickname")
    }
  }
}
